#include "widget.h"

#include <QPainter>
#include <QTimer>

Widget::Widget(QWidget *parent) : QWidget(parent), elapsed(0)
{
    setMinimumHeight(450);
}

void Widget::animate()
{
    //elapsed = (elapsed + qobject_cast<QTimer*>(sender())->interval());
    qint64 ms = QDateTime::currentMSecsSinceEpoch();
    elapsed = abs(ms);
    repaint();
}
